<?php
//$plantilla = array (
   /// 'table_open'          => '<table border="0" cellpadding="4" cellspacing="0">',

   // 'heading_row_start'   => '<tr>',
   // 'heading_row_end'     => '</tr>',
    //'heading_cell_start'  => '<th>',
   // 'heading_cell_end'    => '</th>',

   // 'row_start'           => '<tr>',
   // 'row_end'             => '</tr>',
   // 'cell_start'          => '<td>',
   // 'cell_end'            => '</td>',

  //  'row_alt_start'       => '<tr>',
  //  'row_alt_end'         => '</tr>',
  //  'cell_alt_start'      => '<td>',
  //  'cell_alt_end'        => '</td>',

  //  'table_close'         => '</table>'
//);

//echo 'this->table->set_template($plantilla);';

   // * Salida
    //* /
	$Salida = array (
		"SECHO" =>  intval ($_GET ['SECHO']),
		"ITotalRecords" =>$this-> $iTotal,
		"ITotalDisplayRecords" =>$this->$iFilteredTotal,//,
		"AaData" => array ()
	);

	while ($arow = $this->db->select * from ('cliente',  ($rResult))
	{
		$Row = array ();
		for ($i = 0; $i <count ($aColumns); $i ++)
		{
			if ($aColumns [$i] == "version")
			{
               // // * Formato de salida especial para la columna 'versión' * /
				$Row [] = ($arow [$aColumns [$i]] == "0")? '-': $Arow [$aColumns [$i]];
			}
			else if ($aColumns [$i]!= '')
			{
               /// / * Salida general * /
				$Row [] = $arow [$aColumns [$i]];
			}
		}
		$Salida ["aaData "] [] = $row;
	}

	echo json_encode ($salida);
?>